#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int iq;
	while ((scanf("%d", &iq)) == 1)
	{
		if (iq >= 140)
		{
			printf("YES\n");
		}
	}
}